@import "./variables";
@import "./common";
@import "./dialog";
@import "mixin";

.page-box {
  background-color: #fff;
  margin: 24px 24px;
  padding: 16px;
  border: 1px solid $border-color;
}

.margin-box {
  margin: 16px 24px;
}

.box-shadow {
  @include boxShadow;
}
.form-item-choose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 32px;
  height: 32px;
  margin-top: 34px;
  cursor: pointer;
  border-bottom: 1px solid $border-color;
  padding-right: 12px;
}
.card-box {
  background-color: #fff;
  // margin: 24px 24px 0;
  padding: 16px 32px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
  font-weight: 600;
  color: $title-color;
  border-bottom: 1px solid $border-color;
}

.btn-line {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: -2px 10px;
  background-color: $theme-color;
}

.all-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.border-top-line {
  border-top: 1px solid $border-color;
}

.border-left-line {
  border-left: 1px solid $border-color;
}

.border-right-line {
  border-right: 1px solid $border-color;
}

.border-bottom-line {
  border-bottom: 1px solid transparent;
}

.border-round-line {
  border: 1px solid $border-color;
}

/*间隔条*/
.empty-block {
  width: 100%;
  height: 10px;
  background-color: $bg-color;
}

.background-gray {
  background-color: $bg-color;
}

.background-white {
  background-color: white;
}

.mb20 {
  margin-bottom: 20px;
}

.mt20 {
  margin-top: 20px;
}

.ml20 {
  margin-left: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mo20 {
  margin: 20px;
}

.mt0 {
  margin-top: 0 !important;
}

.pb20 {
  padding-bottom: 20px;
}

.pt20 {
  padding-top: 20px;
}

.pr20 {
  padding-right: 20px;
}

.pl20 {
  padding-left: 20px;
}

.po20 {
  padding: 20px;
}

.mb12 {
  margin-bottom: 12px;
}

.mt12 {
  margin-top: 12px;
}

.ml12 {
  margin-left: 12px;
}

.mr12 {
  margin-right: 12px;
}

.mo12 {
  margin: 12px;
}

.pb12 {
  padding-bottom: 12px;
}

.pt12 {
  padding-top: 12px;
}

.pr12 {
  padding-right: 12px;
}

.pl12 {
  padding-left: 12px;
}

.po12 {
  padding: 12px;
}

.pt3 {
  padding-top: 3px;
}

.m0 {
  margin: 0px;
}

.p0 {
  padding: 0px;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.tips-size {
  font-size: 12px;
}

.line-one {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cursor {
  cursor: pointer;
}

/*保存按钮*/
.lang-btn {
  min-width: 160px;
}

.lang-btn .iconfont {
  margin-right: 6px;
}

.flex {
  display: flex;
}

.flex-b {
  display: flex;
  justify-content: space-between;
}
.flex-c {
  display: flex;
  align-items: center;
}

.flex-bc {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

/*文本样式*/
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-red,
.text-danger {
  color: $danger-color;
}

.text-white {
  color: white;
}

.text-success {
  color: $success-color;
}

.text-warning {
  color: $warning-color;
}

.text-title {
  color: $title-color;
}

.link {
  color: $theme-color;
  cursor: pointer;

  &:hover {
    text-decoration: underline;
  }
}

.text-theme,
.link {
  color: $theme-color;
}

.text-font-color {
  color: $font-color;
}

.text-tips {
  color: $tips-color;
}

.theme-bg {
  background-color: $theme-color;
}

.danger-bg {
  background-color: $danger-color;
}

.white-bg {
  background-color: white;
}

.dark-bg {
  background-color: $dark-bg;
}

.placeholder {
  color: #c0c4cc;
}

.execution {
  padding-top: 10px;
}

table {
  max-width: 99%;
}

.theme-title {
  position: relative;
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  padding-left: 14px;
  margin: 20px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-title:before {
  position: absolute;
  left: 0;
  top: 8px;
  content: "";
  width: 4px;
  height: 24px;
  background-color: #47acee;
}

.theme-title .sub-title {
  float: right;
  font-size: 14px;
}

/*动画*/
/* fade */
.slide-fade-enter-active {
  transition: all 0.3s ease;
}

.slide-fade-leave-active {
  transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}

.slide-fade-enter,
.slide-fade-leave-to {
  transform: translateX(30px);
  opacity: 0;
}

#nprogress .bar {
  background: #1b68e8 !important; //自定义颜色
}

/*自定义table样式*/
.customTable {
  font-size: 10px;
  border: 1px solid #ebeef5;
  border-left: none;
  border-top: none;
  tr,
  thead {
    padding: 0;
  }
  th,
  td {
    padding: 8px 16px;
    border: 1px solid #ebeef5;
    border-right: none;
    border-bottom: none;
    font-weight: normal;
    color: #000;
    font-size: 1.4em;
    &.label {
      font-weight: bold;
      color: #666;
      font-size: 1.2em;
    }
  }
  &[align="center"],
  tr[align="center"],
  td[align="center"] {
    text-align: center;
  }
  &[align="left"],
  tr[align="left"],
  td[align="left"] {
    text-align: left;
  }
  &[align="right"],
  tr[align="right"],
  td[align="right"] {
    text-align: right;
  }
  font {
    color: #f00;
  }
}

.basic-form,
.basic-from {
  @include formWrap(3);
  ::v-deep .el-row {
    display: flex;
    flex-wrap: wrap;
  }
  //表单内小标题样式风格
  .smallTitle {
    font-size: 24px;
    padding: 7px;
    border-radius: 5px;
    background-color: #cce1f1;
    opacity: 0.9;
    color: blue;
    margin-bottom: 20px;
  }
}
.basic-info {
  @include info-list(3);
}

.small-padding-dialog {
  ::v-deep .el-dialog__body {
    padding: 16px 32px;
    .form-wrap {
      padding-top: 0;
    }
  }
}

.cFormFoot {
  margin: 24px;
  padding: 16px 24px;
  background-color: #fff;
  text-align: right;
  position: sticky;
  bottom: 0;
  z-index: 999;
  box-shadow: 0px -5px 15px -6px rgba(0, 0, 0, 0.05);
  &.m0 {
    margin-left: 0;
    margin-right: 0;
  }
}
//表单最外层容器
.form-the-container {
  padding: 24px 24px 0 24px;
}

.preview-form {
  .el-form-item {
    display: flex;
    .el-form-item__label {
      flex: 0 0 100px;
    }
  }
}
.header-span {
  font-size: 36px;
  font-weight: bold;
  vertical-align: middle;
  margin-top: -4px;
}
.clearboth {
  clear: both;
}
.global-loading{
  font-size: 36px;
}
